package com.itWaiLong.Controller.post;

import com.itWaiLong.Result.Result;
import com.itWaiLong.Service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/post/delete")
public class deletePostController {

    @Autowired
    private PostService postService;

    /**
     * 删除讨论
     * @param postId
     * @return
     */
    public Result deletePost(int postId) {
        postService.delete(postId);
        return Result.success();
    }
}
